cmake_minimum_required(VERSION 3.0)
project(myproject VERSION 1.0.0)

# set(CMAKE_C_COMPILER arm-linux-gcc)
# set(CMAKE_CXX_COMPILER arm-linux-g++)

set(CMAKE_C_FLAGS "-Wl,-rpath=/home/mylib/")
set(SRCDIR $(pwd))

include_directories($(SRCDIR)/inc)

add_executable(main main.c)
target_link_libraries(main a b)

add_subdirectory(./lib/)